<?php

declare (strict_types=1);

namespace App\Model;

use Hyperf\DbConnection\Model\Model;

/**
 * @property int $id
 * @property string $game_hash
 * @property string $openid
 * @property int $uid
 * @property int $role_id
 * @property int $hero_id
 * @property string $order_num
 * @property string $order_sn
 * @property string $goods_id
 * @property string $goods_name
 * @property string $prepay_id
 * @property string $error_msg
 * @property string $money
 * @property int $number
 * @property int $platform
 * @property int $platform_from
 * @property int $status
 * @property int $check
 * @property string $create_date
 * @property string $version
 * @property \Carbon\Carbon $created_at
 * @property \Carbon\Carbon $updated_at
 */
class QmGameOrder extends Model {
    public const STATUS_LIST = [
        0 => '未支付',
        1 => '已支付',
        2 => '支付失败',
        3 => '金手指补单',
        4 => '线下订单',
    ];
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'qm_game_order';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [];
    /**
     * The attributes that should be cast to native types.
     *
     * @var array
     */
    protected $casts = [
        'id'      => 'integer', 'uid' => 'integer', 'platform' => 'integer', 'platform_from' => 'integer', 'role_id' => 'integer',
        'hero_id' => 'integer',
        'number'  => 'integer', 'status' => 'integer', 'check' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'
    ];
}